<template>
	<view class="content">
		<i class="iconfont icontongyi"></i>
		<view class="success">支付成功</view>
		<view class="company">深圳智助教育有限公司</view>
		<view class="info">
			<view>订单号<text>{{data.charge_order_sn}}</text></view>
			<view>支付方式<text>微信</text></view>
			<!-- <view>支付账号<text>123456789111111</text></view> -->
			<!-- <view>收件人<text>全同学</text></view> -->
			<view>订单金额<text>￥{{realPay}}</text></view>
		</view>
		<!-- <view class="check" @tap="check">立即查看</view> -->
	</view>
</template>

<script>
	export default{
		data() {
			return {
				data:'',
				realPay:''
			}
		},
		onBackPress(event) {
			if(event.from=='backbutton' ||event.from== 'navigateBack'){
				uni.reLaunch({
					url:'../mine/index'
				})
			}
		},
		onNavigationBarButtonTap() {
			uni.reLaunch({
				url:'../mine/index'
			})
		},
		onLoad(e) {
			
			this.data=JSON.parse(decodeURIComponent(e.data));
			this.realPay=e.realPay;
			console.log(this.realPay);
			console.log(this.data);
		},
		methods: {
			check(tid,name,type,num) {
				uni.navigateTo({
					url: 'resources_Detail?tid='+tid+'&name='+name+'&type='+type+'&num='+num
				})
			}
		}
	}
</script>

<style>
	page {
		background: #FAFAFA;
		min-height: 100%;
	}
	.content {
		background: #FFFFFF;
		border-radius: 20upx;
		margin: 40upx 74upx 0;
		width: calc(100% - 148upx);
	}
	.icontongyi {
		color: #FF9900;
		font-size: 132upx;
		text-align: center;
		line-height: 1;
		padding-top: 100upx;
	}
	.success{
		color: #333333;
		font-size: 36upx;
		text-align: center;
	}
	.company{
		color: #666666;
		font-size: 26upx;
		text-align: center;
	}
	.info{
		margin-top: 60upx;
	}
	.info view {
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin: 0 30upx;
		color: #999999;
		font-size: 26upx;
		margin-bottom: 40upx;
	}
	.info view text {
		max-width: 65%;
	}
	.check{
		color: #FF9900;
		font-size: 30upx;
		text-align: center;
		padding-bottom: 80upx;
	}
</style>
